import React, { PropTypes, PureComponent } from 'react';
import { connect } from 'dva'
import { Divider,Button,Card,Row,Col } from 'antd';
import {
  Tabtitle,
} from '../../../../components';

class BrinDetail extends PureComponent {
  state = {
    data: this.props.researchDetail,
}

componentDidMount() {
  this.fetchData(this.props)
}

fetchData = (props) => {
  this.setState({
      data: {}
  })
  props.dispatch({
      type: 'custodianEvaluation/getResearchDetail',
      payload: props
  })

}
    // editDetail = () =>{
    //   this.props.showMain();
    // }

  render() {
    console.log(this.props);
    return (
        <div> 
           <Row type="flex">
             <Col span={22}><Tabtitle value={'管理人评估报告详情'}/></Col>
             {/* <Col span={2}>
            <Button style={{marginBottom:5}}  type="primary" onClick={() => this.editDetail()}>返回</Button>
            </Col> */}
          </Row>
        {/* <iframe src={this.state.data} width="100%" height="1200px">
                </iframe>  */}
          <a>{this.state.data}</a>
               
          {/* <Card
            bordered={true}
            >
                <iframe src={this.props.url} width="100%" height="1000px" style={{ border: 'none' }}>
                </iframe>

          </Card> */}
        </div>
    );
  }
}

export default connect(({ custodianEvaluation }) => ({ custodianEvaluation }))(BrinDetail)